package com.gxa.service;

import com.gxa.common.PageRecv;
import com.gxa.common.R;
import com.gxa.pojo.Customer;
import com.gxa.pojo.CustomerSearch;

import java.util.Date;
import java.util.List;

/**
 * @program: erp
 * @description: 客户Service层
 * @author: LC
 * @create: 2021-12-05
 */
public interface CustomerService {

    R addCustomer(Customer customer);

    R getCustomerPage(PageRecv<CustomerSearch> pageRecv);

    R modifyCustomer(Customer customer);

    R moveToTrash(List<Integer> customerIds, String remark, List<Integer> delInfo);

    R moveToCustomerPoll(List<Integer> customerIds);

    R moveToOtherEmp(List<Integer> customerIds, Integer employeeId);

    R modifyCustomerProtectedSetting(List<Integer> customerIds, Integer protectedSetting);

    R getCustomerCountByCondition(PageRecv<CustomerSearch> pageRecv);

//    R getCustomerCountByDate(Date startDate, Date endDate);
}
